@import "./theme.scss";
@import "./alifont.scss";


@import "./transition.scss";
@import "./main.scss";
@import "./loader.scss";

.main.about, .main.friend{
  width: 400px;
  height: 500px;
  margin: auto;
  p{
    margin: 16px 0;
  }
}
.main.index{
  p{
    color: $color-main;
  }
  .center{
    text-align: center;
  }
  .section{
    margin-top: 20px;
    position: relative;
    ul{
      li{
        $section-ul-li-width: 240px;
        width: $section-ul-li-width;
        height: $section-ul-li-width / 3;
        padding: 12px;
        margin: 4px;
        background-color: $color-main;
        border: 4px solid #FFF;
        box-shadow: 0 0 4px $color-main;
        transition: background-color .4s ease-in-out;
        float: left;
        overflow: hidden;
        h2{
          font-size: 1rem;
          font-weight: 400;
          text-align: center;
        }
        a{
          color:#fff;
        }
        .des{
          color: #DADADA;
          font-size: 0.8rem;
        }
        &:hover{
          background-color: $color-main - #303;
          a{
            color:#83E9F5;
            text-decoration: none;
          }
        }
      }
    }
  }
}
.main.categories{
  h1{
    height: 100px;
    text-align: center;
  }
  .posts{
    .block{
      float: left;
      border-radius: 4px;
      padding: 2px 8px;
      height: 20px;
      line-height: 20px;
      margin: 0 14px 10px 0;
      &.title{
        background-color: $color-main;
        color: #FFF;
        font-size: 18px;
      }
      &.post{
        cursor: pointer;
        box-shadow: 0 0 1px $color-main;
        color: $color-main;
        font-size: 14px;
        transition: all .4s ease-in-out;
        .date{
          display: none;
        }
        &:hover{
          color: #41c2e2;
          border-radius: 0px;
          background-color: #FFF;
          .date{
            display: block;
          }
          .content{
            display: none;
          }
        }
      }
    }
  }
}
.main.post{
  h1{
    position: absolute;
    top: 0;
    left: 320px;
    right: 320px;
    text-align: left;
    line-height: 50px;
    margin: 0;
  }
  .time{
    text-align: left;
    line-height: 50px;
    font-size: 18px;
    left: 320px;
    right: 320px;
    position: absolute;
    top: 50px;
  }
  .line-break-des{
    display: block;
    height: 1px;
    background-color: #FFF;
    box-shadow: 0 0 1px #AAA;
    width: 100%;
  }
  .des{
    padding: 10px;
    margin-top: 100px;
    color: #888;
  }
  .content{
    margin-top: 20px;
    overflow: auto;
    position: absolute;
    bottom: 0;
    top: 140px;
    color: #5D5D5D;
    line-height: 26px;
    font-size: 16px;
    p{
      margin: 8px;
      text-indent: 2rem;
    }
  }
}





::-webkit-scrollbar {width: 6px;height:6px;}
::-webkit-scrollbar-track-piece{background-color: $color-main + #333;}
::-webkit-scrollbar-thumb{background-color: $color-main - #111;min-height: 150px;min-width: 150px;}
::-webkit-scrollbar-thumb:vertical:hover{background-color: $color-main - #222;}
::-webkit-scrollbar-thumb:horizontal:hover{background-color: $color-main - #333;}

#uyan_frame{
  z-index: $zIndex-uyan_frame;
  transition: all 1s ease;
  position: absolute;
  background-color: #f2fcff;
  top: 200px;
  left: 200px;
  right: 200px;
  padding: 20px;
  border-radius: 4px;
  box-shadow: 0 0 3px #43a3bb;
  bottom: 108px;
  overflow: auto;
  opacity: 0;
  pointer-events: none;
  &.show{
    opacity: 1;
    pointer-events: auto;
  }
}

#uyan_frame_control{
  z-index: $zIndex-uyan_frame + 1;
  transition: all .3s ease;
  cursor: pointer;
  box-shadow: 0 0 4px $color-main;
  left: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50px;
  border: 4px solid #FFF;
  overflow: hidden;
  bottom: 108px;
  position: absolute;
  line-height: 40px;
  text-align: center;
  color: #FFF;
  font-size: 16px;
  background-color: $color-main;
  &:hover{
    background-color: #5bcfec;
    transform: scale(1.2);
  }
}